package {

	import Box2D.Common.Math.b2Vec2;
	import net.box2fp.Box2DWorld;
	import net.flashpunk.World;

	public class MyBox2DWorld extends Box2DWorld {
		
		public static var player:Player;
		
		public function MyBox2DWorld() {
			
			setGravity(new b2Vec2(0, 10.0));
			doDebug();
		}
		
		override public function begin():void {
			
			add(new MyBox2DEntity(100,100));
			add(new MyBox2DWall(0, 460));
			
			MyBox2DWorld.player = new Player(200, 200);
			add(player);
			
			super.begin();
			//pause();
		}
		
		override public function get scale():Number {
			return 30;
		}
		
		override public function update():void {
			super.update();
		}
		
	}	

}	